blob: 4d7b1a74062cf3d11f03ead254024cee8ee96c1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
import { Suspense } from "react";
import { Skeleton } from "@/components/ui/skeleton";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
import DolceUploadPage from "./dolce-upload-page";
import { Shell } from "@/components/shell";
export const metadata = {
title: "조선 벤더문서 업로드(DOLCE)",
description: "조선 설계문서 업로드 및 관리",
};
// ============================================================================
// 로딩 스켈레톤
// ============================================================================
function DolceUploadSkeleton() {
return (
<Card>
<CardHeader>
<div className="flex items-center justify-between">
<Skeleton className="h-8 w-32" />
<Skeleton className="h-10 w-40" />
</div>
</CardHeader>
<CardContent className="space-y-4">
<Skeleton className="h-32 w-full" />
<Skeleton className="h-96 w-full" />
</CardContent>
</Card>
);
}
export default async function DolceUploadPageWrapper({
params,
searchParams,
}: {
params: Promise<{ lng: string }>;
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}) {
const { lng } = await params;
const resolvedParams = await searchParams;
return (
<Shell>
{/* 헤더 */}
<div className="flex items-center justify-between">
<div>
<h2 className="text-2xl font-bold tracking-tight">
{lng === "ko"
? "DOLCE 도면 업로드"
: "DOLCE Drawing Upload"}
</h2>
<p className="text-muted-foreground">
{lng === "ko"
? "설계문서를 조회하고 업로드할 수 있습니다"
: "View and upload design documents"}
</p>
</div>
</div>
{/* 메인 컨텐츠 */}
<Suspense fallback={<DolceUploadSkeleton />}>
<DolceUploadPage searchParams={resolvedParams} />
</Suspense>
</Shell>
);
}
|